package com.tongtech.system.service.impl;

import com.tongtech.system.domain.FileParentIdMapping;
import com.tongtech.system.mapper.FileParentIdMappingMapper;
import com.tongtech.system.service.IFileParentIdMappingService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 文件管理 服务实现
 *
 * @author xingyc
 */
@Service
public class FileParentIdMappingServiceImpl implements IFileParentIdMappingService {

    private static final Logger log = LoggerFactory.getLogger(FileParentIdMappingServiceImpl.class);

    @Autowired
    private FileParentIdMappingMapper fileParentIdMappingMapper;


    @Override
    public List<FileParentIdMapping> selectFileParentIdMappingList(FileParentIdMapping fileParentIdMapping) {
        return fileParentIdMappingMapper.selectFileParentIdMappingList(fileParentIdMapping);
    }

    @Override
    public FileParentIdMapping selectFileParentIdMappingById(Long fileParentIdMapping) {
        return fileParentIdMappingMapper.selectFileParentIdMappingById(fileParentIdMapping);
    }

    @Override
    public int insertFileParentIdMapping(FileParentIdMapping fileParentIdMapping) {
        return fileParentIdMappingMapper.insertFileParentIdMapping(fileParentIdMapping);
    }

    @Override
    public int updateFileParentIdMapping(FileParentIdMapping fileParentIdMapping) {
        return fileParentIdMappingMapper.updateFileParentIdMapping(fileParentIdMapping);
    }

    @Override
    public int deleteParentIdMappingFileById(Long mappingId) {
        return fileParentIdMappingMapper.deleteFileParentIdMappingById(mappingId);
    }
}
